x86/hyperv: change hv_tlb_flush_ex to fix clang build
authorWei Liu <wl@xen.org>
Mon, 23 Dec 2019 11:03:30 +0000 (11:03 +0000)
committerWei Liu <wl@xen.org>
Mon, 23 Dec 2019 12:21:01 +0000 (12:21 +0000)
commit17f53645b20a17792eacc364dd007ce60c94a5d1
tree68c8c3ca971c39986bf0282cc5f1c7fef5766f10
parent25ae71fff02a666058638a0b60e29121dd99b56e
x86/hyperv: change hv_tlb_flush_ex to fix clang build

Clang complains:

In file included from synic.c:15:
/builds/xen-project/xen/xen/include/asm/guest/hyperv-tlfs.h:900:18: error: field 'hv_vp_set' with variable sized type 'struct hv_vpset' not at the end of a struct or class is a GNU extension [-Werror,-Wgnu-variable-sized-type-not-at-end]
        struct hv_vpset hv_vp_set;
                        ^
1 error generated.
/builds/xen-project/xen/xen/Rules.mk:198: recipe for target 'synic.o' failed
make[6]: *** [synic.o] Error 1

Comment out the last variable size array from hv_tlb_flush_ex to fix
clang builds.

Fixes: bbba482664 ("x86: import hyperv-tlfs.h from Linux")
Signed-off-by: Wei Liu <liuwe@microsoft.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/include/asm-x86/guest/hyperv-tlfs.h